package xyz.zhouzhaodong.crm.controller;


import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;
import xyz.zhouzhaodong.crm.dto.UniversityCostDto;
import xyz.zhouzhaodong.crm.service.IUniversityCostService;
import xyz.zhouzhaodong.crm.util.NoRepeatSubmit;
import xyz.zhouzhaodong.crm.util.RestMessage;

import javax.annotation.Resource;

/**
 * <p>
 * 高校费用表 前端控制器
 * </p>
 *
 * @author zhouzhaodong
 * @since 2020-06-22
 */
@RestController
@RequestMapping("/university-cost")
public class UniversityCostController {

    @Resource
    IUniversityCostService universityCostService;
    
    /**
     * 新增高校费用
     * @param universityCostDto
     * @return
     */
    @NoRepeatSubmit
    @RequestMapping("/add")
    public RestMessage addUniversityCost(UniversityCostDto universityCostDto){
        return universityCostService.addUniversityCost(universityCostDto);
    }

    /**
     * 删除高校费用
     * @param universityCostDto
     * @return
     */
    @RequestMapping("/delete")
    public RestMessage deleteUniversityCost(UniversityCostDto universityCostDto){
        return universityCostService.deleteUniversityCost(universityCostDto);
    }

    /**
     * 修改高校费用
     * @param universityCostDto
     * @return
     */
    @RequestMapping("/update")
    public RestMessage updateUniversityCost(UniversityCostDto universityCostDto){
        return universityCostService.updateUniversityCost(universityCostDto);
    }

    /**
     * 查询高校费用
     * @param universityCostDto
     * @return
     */
    @RequestMapping("/select")
    public RestMessage selectUniversityCost(UniversityCostDto universityCostDto){
        return universityCostService.selectUniversityCost(universityCostDto);
    }
    
}
